package com.demo.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 对应easyui的datagrid组件需要的json数据格式:{"total":28,"rows":[]}
 * 
 * @author dj
 *  
 */
public class DataGrid<T> {

	private Integer total = 0;
	private List<T> rows;

	public DataGrid() {
		super();
		rows = new ArrayList<T>(0);
	}

	public DataGrid(Integer total, List<T> rows) {
		super();
		this.total = total;
		this.rows = rows;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

}
